home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / MPW Related / Animated Cursors / ShowCursor.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-09-14  |  1.8 KB  |  62 lines  |  [TEXT/MPS ]

  1. #ifndef _showcursor_
  2. #define _showcursor_
  3. /******************************************************************************\
  4. * Header Files
  5. \******************************************************************************/
  6.  
  7. #ifndef __WINDOWS__
  8. #include <Windows.h>
  9. #endif
  10.  
  11. #ifndef __OSUTILS__
  12. #include <OSUtils.h>
  13. #endif
  14.  
  15.  
  16. /******************************************************************************\
  17. * Constant Declarations
  18. \******************************************************************************/
  19.  
  20. /* Miscellaneous Constants */
  21. #define null        0   //Generic null
  22. #define maybe       -1  //You know, true, false. . . maybe
  23.  
  24. /* Application flags */
  25. #define quitFlag ((short) 0x0001) //Set if quitting
  26.  
  27. /* Application Errors */
  28. #define noApplErr ((short) 0) //No application error
  29. #define unknwnErr ((short) 1) //Unknown error
  30. #define memFulErr ((short) 2) //Memory is too full for an operation
  31. #define appDmgErr ((short) 3) //Application is damaged
  32. #define fileOpErr ((short) 4) //File operation unsuccessful
  33.  
  34.  
  35. /******************************************************************************\
  36. * Type Declarations
  37. \******************************************************************************/
  38.  
  39. /* Generic byte */
  40. typedef unsigned char Byte;
  41.  
  42.  
  43. /******************************************************************************\
  44. * Global Variable Declarations
  45. \******************************************************************************/
  46.  
  47. extern short     gApplErr;
  48. extern short     gFlags;
  49. extern WindowPtr gLastWindow;
  50. extern SysEnvRec gEnvirons;
  51.  
  52.  
  53. /******************************************************************************\
  54. * Macro Declarations
  55. \******************************************************************************/
  56.  
  57. /* Evaluate the kind of window given a WindowPtr */
  58. #define windKindPtr(Ptr) (((WindowPeek) Ptr)->windowKind)
  59.  
  60.  
  61. #endif
  62.